﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyMES.Dto;
using VOL.Entity.DomainModels;

namespace MyMES.IServices.MaterialCatalogs
{
    public interface IMaterialCatalogService
    {
        List<MaterialCatalogTreeDto> BuildTree(List<MaterialCatalogTreeDto> nodes, int parentId = 0);
        Task<List<MaterialCatalogTreeDto>> GetMaterialCatalogTreeAsync();


        Task<bool> AddAsync(MaterialCatalog entity);
        Task<bool> UpdateAsync(MaterialCatalog entity);
        Task<bool> DeleteAsync(int id);
    }
}
